/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.core;

public class MsoPermission {
	private final int value;

	/** msoPermissionView **/
	public static final MsoPermission View = new MsoPermission(1);
	/** msoPermissionRead **/
	public static final MsoPermission Read = new MsoPermission(1);
	/** msoPermissionEdit **/
	public static final MsoPermission Edit = new MsoPermission(2);
	/** msoPermissionSave **/
	public static final MsoPermission Save = new MsoPermission(4);
	/** msoPermissionExtract **/
	public static final MsoPermission Extract = new MsoPermission(8);
	/** msoPermissionChange **/
	public static final MsoPermission Change = new MsoPermission(15);
	/** msoPermissionPrint **/
	public static final MsoPermission Print = new MsoPermission(16);
	/** msoPermissionObjModel **/
	public static final MsoPermission ObjModel = new MsoPermission(32);
	/** msoPermissionFullControl **/
	public static final MsoPermission FullControl = new MsoPermission(64);
	/** msoPermissionAllCommon **/
	public static final MsoPermission AllCommon = new MsoPermission(127);


	private MsoPermission(int value) { this.value = value; }
	public int getValue() { return this.value; }
	public static MsoPermission valueOf(int value) { return new MsoPermission(value); }
	public boolean equals(Object o) {
		if(o == null || o.getClass() != MsoPermission.class) return false;
		return ((MsoPermission)o).value == value;
	}
	public int hashCode() { return value; }
}
